package com.xhwl.logistics.component;

import cn.hutool.crypto.SecureUtil;
import com.alibaba.fastjson.JSON;
import com.xhwl.logistics.dto.http.query.QueryParameterJieShunDTO;
import org.springframework.stereotype.Component;

@Component
public class SignForJieShun {

    public String sign(QueryParameterJieShunDTO<?> queryParameterJieShunDTO, String privateKey) {
        return SecureUtil.md5(JSON.toJSONString(queryParameterJieShunDTO) + privateKey).toUpperCase();
    }

}
